Optimal. Leaf size=52 \[ -\frac{\tan ^{-1}\left (\frac{\sqrt{3} x}{1-x^2}\right )}{2 \sqrt{3}}+\frac{1}{6} \tanh ^{-1}\left (\frac{x}{x^2+1}\right )-\frac{1}{x}+\frac{1}{3} \tanh ^{-1}(x) \]
[Out]
_______________________________________________________________________________________
Rubi [A] time = 0.296585, antiderivative size = 78, normalized size of antiderivative = 1.5, number of steps used = 11, number of rules used = 7, integrand size = 13, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.538 \[ -\frac{1}{12} \log \left (x^2-x+1\right )+\frac{1}{12} \log \left (x^2+x+1\right )-\frac{1}{x}+\frac{\tan ^{-1}\left (\frac{1-2 x}{\sqrt{3}}\right )}{2 \sqrt{3}}-\frac{\tan ^{-1}\left (\frac{2 x+1}{\sqrt{3}}\right )}{2 \sqrt{3}}+\frac{1}{3} \tanh ^{-1}(x) \]
Antiderivative was successfully verified.
[In] Int[1/(x^2*(1 - x^6)),x]
[Out]
_______________________________________________________________________________________
Rubi in Sympy [A] time = 49.879, size = 71, normalized size = 1.37 \[ - \frac{\log{\left (x^{2} - x + 1 \right )}}{12} + \frac{\log{\left (x^{2} + x + 1 \right )}}{12} - \frac{\sqrt{3} \operatorname{atan}{\left (\sqrt{3} \left (\frac{2 x}{3} - \frac{1}{3}\right ) \right )}}{6} - \frac{\sqrt{3} \operatorname{atan}{\left (\sqrt{3} \left (\frac{2 x}{3} + \frac{1}{3}\right ) \right )}}{6} + \frac{\operatorname{atanh}{\left (x \right )}}{3} - \frac{1}{x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] rubi_integrate(1/x**2/(-x**6+1),x)
[Out]
_______________________________________________________________________________________
Mathematica [A] time = 0.0413572, size = 86, normalized size = 1.65 \[ -\frac{x \log \left (x^2-x+1\right )-x \log \left (x^2+x+1\right )+2 x \log (1-x)-2 x \log (x+1)+2 \sqrt{3} x \tan ^{-1}\left (\frac{2 x-1}{\sqrt{3}}\right )+2 \sqrt{3} x \tan ^{-1}\left (\frac{2 x+1}{\sqrt{3}}\right )+12}{12 x} \]
Antiderivative was successfully verified.
[In] Integrate[1/(x^2*(1 - x^6)),x]
[Out]
_______________________________________________________________________________________
Maple [A] time = 0.013, size = 71, normalized size = 1.4 \[{\frac{\ln \left ({x}^{2}+x+1 \right ) }{12}}-{\frac{\sqrt{3}}{6}\arctan \left ({\frac{ \left ( 1+2\,x \right ) \sqrt{3}}{3}} \right ) }-{\frac{\ln \left ( -1+x \right ) }{6}}-{\frac{\ln \left ({x}^{2}-x+1 \right ) }{12}}-{\frac{\sqrt{3}}{6}\arctan \left ({\frac{ \left ( 2\,x-1 \right ) \sqrt{3}}{3}} \right ) }+{\frac{\ln \left ( 1+x \right ) }{6}}-{x}^{-1} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] int(1/x^2/(-x^6+1),x)
[Out]
_______________________________________________________________________________________
Maxima [A] time = 1.58067, size = 95, normalized size = 1.83 \[ -\frac{1}{6} \, \sqrt{3} \arctan \left (\frac{1}{3} \, \sqrt{3}{\left (2 \, x + 1\right )}\right ) - \frac{1}{6} \, \sqrt{3} \arctan \left (\frac{1}{3} \, \sqrt{3}{\left (2 \, x - 1\right )}\right ) - \frac{1}{x} + \frac{1}{12} \, \log \left (x^{2} + x + 1\right ) - \frac{1}{12} \, \log \left (x^{2} - x + 1\right ) + \frac{1}{6} \, \log \left (x + 1\right ) - \frac{1}{6} \, \log \left (x - 1\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate(-1/((x^6 - 1)*x^2),x, algorithm="maxima")
[Out]
_______________________________________________________________________________________
Fricas [A] time = 0.227857, size = 120, normalized size = 2.31 \[ \frac{\sqrt{3}{\left (\sqrt{3} x \log \left (x^{2} + x + 1\right ) - \sqrt{3} x \log \left (x^{2} - x + 1\right ) + 2 \, \sqrt{3} x \log \left (x + 1\right ) - 2 \, \sqrt{3} x \log \left (x - 1\right ) - 6 \, x \arctan \left (\frac{1}{3} \, \sqrt{3}{\left (2 \, x + 1\right )}\right ) - 6 \, x \arctan \left (\frac{1}{3} \, \sqrt{3}{\left (2 \, x - 1\right )}\right ) - 12 \, \sqrt{3}\right )}}{36 \, x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate(-1/((x^6 - 1)*x^2),x, algorithm="fricas")
[Out]
_______________________________________________________________________________________
Sympy [A] time = 0.825597, size = 87, normalized size = 1.67 \[ - \frac{\log{\left (x - 1 \right )}}{6} + \frac{\log{\left (x + 1 \right )}}{6} - \frac{\log{\left (x^{2} - x + 1 \right )}}{12} + \frac{\log{\left (x^{2} + x + 1 \right )}}{12} - \frac{\sqrt{3} \operatorname{atan}{\left (\frac{2 \sqrt{3} x}{3} - \frac{\sqrt{3}}{3} \right )}}{6} - \frac{\sqrt{3} \operatorname{atan}{\left (\frac{2 \sqrt{3} x}{3} + \frac{\sqrt{3}}{3} \right )}}{6} - \frac{1}{x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate(1/x**2/(-x**6+1),x)
[Out]
_______________________________________________________________________________________
GIAC/XCAS [A] time = 0.224792, size = 97, normalized size = 1.87 \[ -\frac{1}{6} \, \sqrt{3} \arctan \left (\frac{1}{3} \, \sqrt{3}{\left (2 \, x + 1\right )}\right ) - \frac{1}{6} \, \sqrt{3} \arctan \left (\frac{1}{3} \, \sqrt{3}{\left (2 \, x - 1\right )}\right ) - \frac{1}{x} + \frac{1}{12} \,{\rm ln}\left (x^{2} + x + 1\right ) - \frac{1}{12} \,{\rm ln}\left (x^{2} - x + 1\right ) + \frac{1}{6} \,{\rm ln}\left ({\left | x + 1 \right |}\right ) - \frac{1}{6} \,{\rm ln}\left ({\left | x - 1 \right |}\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate(-1/((x^6 - 1)*x^2),x, algorithm="giac")
[Out]